#include "oled.h"

void MyOLED_ShowChar(uint8_t x,uint8_t y,uint8_t chr)
{
    OLED_ShowChar((y-1)*8, (x-1)*2, chr, 16);
}

void MyOLED_ShowNum(uint8_t x,uint8_t y,uint32_t num,uint8_t len)
{
    OLED_ShowNum((y-1)*8, (x-1)*2, num, len, 16);
}
void MyOLED_ShowString(uint8_t x,uint8_t y,char *chr)
{
    OLED_ShowString((y-1)*8, (x-1)*2, (uint8_t*)chr, 16);
}
void MyOLED_ShowSignedNum(uint8_t x,uint8_t y,int32_t num,uint8_t len)
{
    uint8_t i;
	uint32_t num1;
	if (num >= 0)
	{
		MyOLED_ShowChar(x, y, '+');
		num1 = num;
	}
	else
	{
		MyOLED_ShowChar(x, y, '-');
		num1 = -num;
	}
    MyOLED_ShowNum(x, y+1, num1, len);
}